home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-68k-src / machines / amiga68k / include / time.h < prev   
C/C++ Source or Header  |  1999-01-01  |  989b  |  52 lines

  1. #ifndef __TIME_H
  2. #define __TIME_H 1
  3.  
  4. #ifndef __TIME_T
  5. #define __TIME_T 1
  6. typedef long time_t;
  7. #endif
  8.  
  9. #ifndef __CLOCK_T
  10. #define __CLOCK_T 1
  11. typedef long clock_t;
  12. #endif
  13.  
  14. #ifndef __SIZE_T
  15. #define __SIZE_T 1
  16. typedef unsigned long size_t;
  17. #endif
  18.  
  19. #undef NULL
  20. #define NULL ((void *)0)
  21.  
  22. struct tm {
  23.         int     tm_sec;
  24.         int     tm_min;
  25.         int     tm_hour;
  26.         int     tm_mday;
  27.         int     tm_mon;
  28.         int     tm_year;
  29.         int     tm_wday;
  30.         int     tm_yday;
  31.         int     tm_isdst;
  32. /*        long    tm_gmtoff;
  33.         char    *tm_zone;*/
  34. };
  35.  
  36. time_t time(time_t *);
  37. double difftime(time_t,time_t);
  38. char *ctime(const time_t *);
  39. char *asctime(const struct tm *);
  40. clock_t clock(void);
  41. struct tm *gmtime(const time_t *);
  42. struct tm *localtime(const time_t *);
  43. time_t mktime(struct tm *);
  44. size_t strftime(char *,size_t,const char *,const struct tm *);
  45.  
  46. #define CLOCKS_PER_SEC 50   /* z.Z. wohl nutzlos    */
  47.  
  48. #define difftime(a,b) ((double)((a)-(b)))
  49.  
  50. #endif
  51.  
  52.